import { PageContainer } from "@ant-design/pro-components";
import React, { useState, FC } from "react";
import MessageSet from "./set";
import MessagePush from "./push";
const MessageSetting: FC<any> = () => {
  const [key, setKey] = useState("1");
  return (
    <div key="MessageSetting">
      <PageContainer
        title="消息设置"
        tabList={[
          {
            tab: "消息设置",
            key: "1",
          },
          {
            tab: "推送记录",
            key: "2",
          },
        ]}
        tabActiveKey={key}
        onTabChange={(e) => {
          setKey(e);
        }}
      >
        {key == "1" ? <MessageSet /> : <MessagePush />}
      </PageContainer>
    </div>
  );
};
export default MessageSetting;
